import Layout from '@/layout'

const wxRouter = {
  path: '/wx',
  component: Layout,
  redirect: '/wx',
  name: 'wx',
  meta: {
    title: '微信管理',
    icon: 'tree-table',
    noCache: true,
    roles: ['myClinic']
  },
  children: [
    {
      path: '/wx/manager',
      component: () => import('@/views/wx/manager'),
      name: '微信管理',
      meta: { icon: 'edit', title: '微信管理', roles: ['clinic:info'] }
    },
    {
      path: '/wx/menu',
      component: () => import('@/views/wx/menu'),
      name: '微信菜单',
      meta: { icon: 'education', title: '微信菜单', roles: ['clinic:info'] }
    },{
      path: '/wx/news',
      component: () => import('@/views/wx/news'),
      name: '微信菜单',
      meta: { icon: 'education', title: '微信图文', roles: ['clinic:info'] }
    }]
}

export default wxRouter
